import request from '@/utils/request'

// 查询产量日报列表
export function listWorkfaceDayReport(query) {
  return request({
    url: '/dispatch/workfaceDayReport/list',
    method: 'get',
    params: query
  })
}

// 查询产量日报详细
export function getWorkfaceDayReport(reportId) {
  return request({
    url: '/dispatch/workfaceDayReport/' + reportId,
    method: 'get'
  })
}

// 新增产量日报
export function addWorkfaceDayReport(data) {
  return request({
    url: '/dispatch/workfaceDayReport',
    method: 'post',
    data: data
  })
}

// 修改产量日报
export function updateWorkfaceDayReport(data) {
  return request({
    url: '/dispatch/workfaceDayReport',
    method: 'put',
    data: data
  })
}

// 删除产量日报
export function delWorkfaceDayReport(reportId) {
  return request({
    url: '/dispatch/workfaceDayReport/' + reportId,
    method: 'delete'
  })
}
